package cn.rui.mapper;

import cn.rui.pojo.Order;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

public interface OrderMapper {
    List<Order> findByCondition(Order order);

    public void add(Order order);

    public Integer findOrderCountByDate(String date);

    public Integer findVisitsCountByDate(String date);

    public Integer findOrderCountAfterDate(String date);

    public Integer findVisitsCountAfterDate(String date);

    public List<Map<String,Object>> findHotSetmeal();

    Map<String,Object> findById4Detail(Integer id);

    Page<Order> selectByCondition(String queryString);

    void deleteById(Integer id);

    Order findById(Integer id);

    void orderUpdateType(Order order);

    void deleteByMemberId(Integer id);
}
